package demo.coupon;

/**
 * @projectName: design-pattern-demo
 * @className: CouponService
 * @description: 模拟优惠券服务
 * @author: MagicDuck
 * @create: 2020-07-16 15:55
 **/
public class CouponService {
    /**
     * 颁发优惠券
     * @param uId           用户编号
     * @param couponNumber  优惠券编号
     * @param uuid          uuid
     * @return              优惠券结果
     */
    public CouponResult sendCoupon(String uId, String couponNumber, String uuid) {
        System.out.println("模拟发放优惠券一张：" + uId + "," + couponNumber + "," + uuid);
        return new CouponResult("0000", "发放成功");
    }
}
